-- GENERATED SPELL FOR [Writhing Mage] --


function spell0_7075(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(12675,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7075', 7000, 1)
end

function Sorts_7075(pUnit, Event)
local choix_sorts_7075 = math.random(0, 0)
if choix_sorts_7075 == 0 then
pUnit:RegisterEvent('spell0_7075', 1, 1)
end
end

function mob7075_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7075', math.random(1500, 3000), 1)
end

function mob7075_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7075_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7075_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7075, 1, 'mob7075_Action')
RegisterUnitEvent(7075, 2, 'mob7075_Leave')
RegisterUnitEvent(7075, 3, 'mob7075_Kill')
RegisterUnitEvent(7075, 4, 'mob7075_Die')
